package com.stars.pao.junit01;

public class Square {
    private Unit occupant;

    public void setOccupant(Unit unit) {
        this.occupant = unit;
    }

    public boolean contains(Unit unit) {
        return occupant == unit;
    }

    public void clearOccupant() {
        this.occupant = null;
    }
}




